package org.ThreadDemo.sync;

public class Main {

    public static void main(String[] args) {
        Thread aa = new Thread(()->{
            System.out.println(Thread.currentThread().getName()+"：："+Thread.currentThread().isDaemon());
        },
       "aab" );
        //aa.setDaemon(true);
        aa.start();

        aa.setDaemon(true);

        System.out.println(Thread.currentThread().getName()+"Over");
    }
}
